﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/plugin/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>

</head>
<body>
	<div class="ibox-content">
		<form class="form-horizontal" id="dataform"
			onsubmit="javascripr:return false;">
			<c:if test="${obj ne null }">
				<input type="hidden" name="adId" value="${obj.adId }">
			</c:if>
			<div class="form-group">
				<label class="col-sm-2 control-label">就业类型</label>
				<div class="col-sm-3">
					<select class="select2 form-control autoFull" data-filed="colName"
						data-value="colId" name="adColumn"
						data-url="${path}/admin/webAdcolumn/all" datatype="*"
						nullmsg="就业类型不能为空" data-def="${obj.adColumn}">
						<option value="">-- 请选择就业类型 --</option>
					</select>
				</div>
				
				<label class="col-sm-2 control-label">就业时间</label>
				<div class="col-sm-3">
					<input name="adTime" class="form-control datetimepicker" value="<fmt:formatDate value="${obj.adTime }"
pattern="yyyy-MM-dd"></fmt:formatDate>" />
				</div>
			</div>
			<div class="form-group">
			<label class="col-sm-2 control-label">学生姓名</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" name="adTitle"
						value="${obj.adTitle }">
				</div>
				<label class="col-sm-2 control-label">就业单位</label>
				<div class="col-sm-3">
					<input value="${obj.adInfo3}" datatype="*" name="adInfo3"
						class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">地点</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" name="adInfo4"
						value="${obj.adInfo4 }">
				</div>
				<label class="col-sm-2 control-label">薪资</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" name="adInfo5"
						value="${obj.adInfo5 }">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">毕业院校</label>
				<div class="col-sm-3">
					<input name="adInfo1" class="form-control"
						value="${obj.adInfo1 }" />
				</div>
				
				<label class="col-sm-2 control-label">专业</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" name="adInfo2"
						value="${obj.adInfo2 }" datatype="*" />
				</div>
			</div>
			<div class="form-group ">
				<div class="col-sm-12 text-center">
					<a href="javascript:;" onclick="myForm.submit()"
						class="btn btn-success radius"><i class="fa fa-check"></i> 保存</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a class="btn btn-danger radius" href="javascript:;"
						onclick="MTools.closeForm()"><i class="fa fa-close"></i> 关闭</a>
				</div>
			</div>
		</form>
	</div>


</body>
<script type="text/javascript"
	src="${path }/resource/js/systools/MJsBase.js"></script>
<script type="text/javascript">
	MTools.autoFullSelect();
	$(".select2").select2();
	MTools.ininDatetimepicker();
	var myForm = MForm.initForm({
		invokeUrl : "${path}/admin/webAd/addOrModify",
		afterSubmit : function() {
			parent.myGrid.serchData();
		},
	});
</script>
</body>
</html>